package com.atguigu.ssyx.cart.client;

import com.atguigu.ssyx.model.order.CartInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * ClassName: CartFeignClient
 * Package: com.atguigu.ssyx.cart.client
 * Description:
 *
 * @Author: 比特张
 * @Create: 2023/7/30 - 9:22
 * @Version: v1.0
 */
@FeignClient("service-cart")
public interface CartFeignClient {
    /**
     * 根据用户Id 查询购物车列表
     */
    @GetMapping("/api/cart/inner/getCartCheckedList/{userId}")
    List<CartInfo> getCartCheckedList(@PathVariable("userId") Long userId);
}
